const getters = {
  sidebar: state => state.app.sidebar, // 模块属性  
  device: state => state.app.device,
  token: state => state.user.token, // token
  userId:state => state.user.userInfo.userId, // 用户id,用于在守卫中判断获取用户信息
  avatar: state => state.user.userInfo.staffPhoto,  // 用户头像
  name: state => state.user.userInfo.username   // 用户名
}
export default getters
